import request from '@/utils/request'

// 列表
export function listTable(query) {
  return request({
    url: '/openform/ImportExportConfig/list',
    method: 'get',
    params: query
  })
}
// 新增或保存配置
export function saveOrUpdate(data) {
  return request({
    url: '/openform/ImportExportConfig/saveOrUpdate',
    method: 'post',
    data
  })
}
// 批量删除配置
export function batchDeleteByIds(data) {
  return request({
    url: '/openform/ImportExportConfig/batchDeleteByIds',
    method: 'delete',
    data
  })
}

//配置详情
export function getInfoByKey(key) {
  return request({
    url: '/openform/ImportExportConfig/getInfoByKey/'+key,
    method: 'get'
  })
}
